import 'package:flutter_common_fragement/common/base/index.dart';
import 'package:flutter_common_fragement/components/common/app_bar.dart';
import 'package:flutter_common_fragement/pages/root/view_model/workbench_view_model.dart';

class WorkBenchPage extends BasePage<WorkBenchViewModel> {
  WorkBenchPage() : super(WorkBenchViewModel());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: MyAppBar.build(context, title: '工作台'),
      body: ConsumerWidget<WorkBenchViewModel>(
        // isMock: true,
        builder: (context, vm, _) {
          return SingleChildScrollView(
            child: Column(
              children: [
                ElevatedButton(
                    onPressed: () {
                      vm.goTest();
                    },
                    child: const Text('ElevatedButton')),
                const Text('工作台'),
              ],
            ),
          );
        },
      ),
    );
  }
}
